layout.tsx 629 B

1234567891011121314151617181920
  1. import { LayoutParams } from "@/shared/types/next";
  2. import { Footer } from "@/features/layout/Footer";
  3. type LocaleParams = Record<string, string> & {
  4. locale: string;
  5. };
  6. export default function RouteLayout({ children, params: _ }: LayoutParams<LocaleParams>) {
  7. return (
  8. <div className="bg-muted/30 text-foreground flex min-h-screen flex-col">
  9. {/* Fixe l'espace sous le header flottant */}
  10. <div className="h-16" />
  11. {/* Contenu principal centré avec marge */}
  12. <main className="flex-1 px-4 py-12">
  13. <div className="mx-auto w-full max-w-4xl">{children}</div>
  14. </main>
  15. </div>
  16. );
  17. }